ul.breadcrumb.mtop30
	li
		a(href='/portal/index') 首页
	li.sep >
	li 密码重置
	
.yui3-g
				
	.yui3-u-23-24
		section.list.border-arc.pwdReset
			.resetTipIcon
			h2.cd.pad5.padleft20.lbc 密码重置
			.pad20.btop
				p.font14.padbottom10.b(ng-show='step == 2')
					请输入需要重置密码的手机号码，如果您输入的手机号码与您注册的手机号资料不一致，将不能通过广发网重置登录密码。
				
				.mtop10(ng-switch='step')
					form(ng-switch-when=2, name='step2form', ng-submit='submit()', novalidate).pad20
						.mbottom20.bold.font14.nc(ng-show='error')
							label.mrem.w5em &nbsp;
							| {{error}}
						//- .mbottom20
						//- 	label.mrem.w5em.tar 手机号码:
						//- 	| {{session.service_name}}
						.mbottom20
							.tip 
								| 此操作需要验证你的安全信息，绑定后可以使用手机账号登录
							.inputField.mobile.resetIcon
								//- input(type='text', gf-input, name='mobile', ng-model='params.mobile', required, maxlength=16, placeholder='移动电话').text
								.field
									label(for='mobile', ng-class='{hidden : params.mobile.length}') 移动电话
									input(type='text', gf-input, name='mobile', ng-model='params.mobile', required, maxlength=16)
							.yes(ng-show='params.mobileError==2')
							.no(ng-show='params.mobileError==1')
						.mbottom20
							.verifyCodeTip
								button.btn.getVerifyCode(ng-click='submit1()', ng-disabled='!params.mobile') 
									b.nc(ng-show='time != -1 && time != 0') ({{time}})
									span(ng-show='time != -1') 获取手机验证码
									span(ng-show='time == -1') 重新获取验证码
								//- span.mlem(ng-show='time>=0') 
								//- 	| 验证码已发送，注意接收
								//- 	b.nc.mlem {{time}}
								//- 	| &nbsp;秒
							.inputField.verifyCode.resetIcon
								.field
									label(for='verify_code', ng-hide='params.verify_code.length') 手机验证码
									input(type='text', gf-input, name='verify_code', ng-model='params.verify_code', required, maxlength=6, ng-disabled='!params.mobile')
							.yes(ng-show='verifyCodeError==2')
							.no(ng-show='verifyCodeError==1')
						.mbottom20
							.inputField.pwd.resetIcon
								.field
									label(for='pwd1', ng-hide='params.pwd1.length') 新设登录密码
									input(type='password', name='pwd1', gf-input, ng-model='params.pwd1', required, maxlength=16, ng-disabled='!hasVerifyCode')
							.yes(ng-show='pwd1Error==2')
							.no(ng-show='pwd1Error==1')
						.mbottom20
							.inputField.pwd.resetIcon
								.field
									label(for='pwd2', ng-hide='pwd2.length') 重复登录密码
									input(type='password', name='pwd2', gf-input, ng-model='pwd2', required, maxlength=16, ng-disabled='!hasVerifyCode')
							.yes(ng-show='pwd2Error==2')
							.no(ng-show='pwd2Error==1')
							span.nc(ng-show='params.pwd1 != pwd2') 密码不匹配
						.mbottom20
							.inputField.verifyCode.resetIcon
								.field
									label(for='captcha', ng-hide='params.captcha.length') 请输入验证码
									input(type='text', name='captcha', gf-input, ng-model='params.captcha', required)
							.yes(ng-show='captchaError==2')
							.no(ng-show='captchaError==1')
							img.mleft10(ng-src='/captcha2.jpg?_cache_={{captcha_random}}', alt='验证码', height=30, width=80, ng-click='refreshCode()', style='cursor:pointer;margin-top:-40px').mright10
						div
							//- 为了对齐，字符相同
							label.mrem.w5em &nbsp;
							input(type='submit', ng-disabled='!step2form.$valid', value='重置').btn.primary
					
					.pad30.mtop20(ng-switch-when=3)
						.regsuccessleft.success 恭喜！密码重置成功
						.regsuccessleft.mtop10.alignsuccess
							a(href='/portal/index').btn.primary 返回首页
					.pad30.mtop20(ng-switch-when=4)
						.regsuccessleft.success 抱歉！密码重置不成功
						.regsuccessleft.mtop10.alignsuccess
							a(href='/portal/index').btn.primary 返回首页